module lang.d.sts.expressions.dcastexpression;

import lang.d.sts.expressions.dexpression;
import lang.d.types.dtype;
import lang.d.visitors.dvisitor;

class DCastExpression: DExpression {
    private DType myResultType;
    private DExpression myExpression;

    public this(DType resultType) {
        myResultType = resultType;
    }

    public void setExpression(DExpression expr) {
        myExpression = expr;
        expr.setParent(this);
    }

    override public void accept(DVisitor visitor) {
        visitor.visitCastExpression(this);
    }
}

